package com.ideal.frame.sys.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ideal.frame.entity.BaseAutoModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Data
@Entity
@Table(name = "t_sys_role")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class SysRole extends BaseAutoModel {

    private String name;
    private String code;
    private String remark;
    @Transient
    private List<Long> menuIds;

    public SysRole() {
    }

    public SysRole(Long id) {
        super(id);
    }
}
